def to_dify_format(qdrant_results) -> list:
    # 打印 qdrant_results 的类型和内容
    # print(f"qdrant_results 类型: {type(qdrant_results)}")
    # print(f"qdrant_results 内容: {qdrant_results}")

    return [
        {
            "content": result.get("content", ""),
            "score": result.get("score", 0),
            "title": result.get("title", ""),            
            "metadata": {
                "source": result.get("source", ""),
                "page": result.get("page", 0),
                "file_name": result.get("file_name", ""),
                "file_path": result.get("file_path", ""),
            }
        }
        for result in qdrant_results
    ]